package com.skyme.automation.generate.wizard.bpm;

import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.internal.ui.packageview.PackageFragmentRootContainer;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.wizard.Wizard;
import org.eclipse.ui.ISelectionService;
import org.eclipse.ui.internal.Workbench;

import com.skyme.automation.generate.common.util.Tools;

/**
 * 设置工作流向导页
 * 
 * @author zhangfeng
 * 
 */
public class BpmWizard extends Wizard {

	private BpmSelectWizardPage bpmSelPage;

	public BpmWizard() {
		setWindowTitle("设置工作流");
		setNeedsProgressMonitor(true);
	}

	@Override
	public void addPages() {
		bpmSelPage = new BpmSelectWizardPage();
		addPage(bpmSelPage);
	}

	@Override
	public boolean performFinish() {
		boolean r = MessageDialog.openQuestion(getShell(), "请选择", "您选择的工作流类型是"
				+ bpmSelPage.getBpmType() + "，确定添加吗？");
		if(r){
			IProject iProject = Tools.getCurrentProject();
			MessageDialog.openInformation(getShell(), "hello", "确定");
			
		}
		return true;
	}
	
 

}
